<template>
    <div class="e-table">
        <el-table
            class="table"
            :data="tableData"
            border
            style="width: 100%"
        >
            <el-table-column show-overflow-tooltip prop="unitName" label="审核级次" min-width="250">
            </el-table-column>
            <el-table-column show-overflow-tooltip prop="assignUser" label="审核人" width="200">
            </el-table-column>
            <el-table-column show-overflow-tooltip prop="userTitle" label="审核人岗位" width="200">
            </el-table-column>
            <el-table-column show-overflow-tooltip prop="notifyTime" label="通知时间" width="180">
            </el-table-column>
            <el-table-column show-overflow-tooltip prop="completeTime" label="审核时间" width="180">
            </el-table-column>
            <el-table-column show-overflow-tooltip prop="opinion" label="审核意见" width="200">
            </el-table-column>
        </el-table>
    </div>
</template>

<script>
export default {
    props: {
        billType: {
            type: Number,
            default: 0
        },
        tableData: {
            type: Array,
            default: ()=>{
                return []
            }
        }
    },
    data () {
        return {
            auditParams:
                {
                    'billId': this.$route.query.billId,
                    'billType': this.billType,
                    'freeNextUnitIndex': null,
                    'freeNextUser': '',
                    'isPass': true,
                    'isShareInAudit': true,
                    'opinion': '',
                    'orgId': '',
                    'orgName': '',
                    'userId': '',
                    'workId': ''
                },
        }
    },
    created () {
        this.auditHistory()
    },
    methods: {
        auditHistory () {
            this.$emit('getAuditHistory')
        },

    },
}
</script>

<style lang="sass" scoped></style>
